home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C / Code Resources / Jims CDEFs 1.50 / demo Source ƒ / demoBoxes.r < prev    next >
Encoding:
Text File  |  1995-10-27  |  3.0 KB  |  121 lines  |  [TEXT/KAHL]

  1. // -----------------------------------------------------------------------------
  2. //    File    : demoBoxes.r
  3. //    Date    : June 18, 1995
  4. //    Author    : Jim Stout
  5. //    Purpose    : show the various types of Group boxes available with CDEF 1101
  6. //            :
  7. // -----------------------------------------------------------------------------
  8. #define REZ                                    // Think 6 - see jimsCDEF.h
  9. #define SystemSevenOrLater 1
  10. #include <Types.r> 
  11. #include "jimscdef.h"
  12.  
  13. resource 'dctb' (240, purgeable) {
  14.     {
  15.         /* [1] */        wContentColor, 52428, 52428, 52428,        // gray background
  16.         /* [2] */        wFrameColor, 0, 0, 0,
  17.         /* [3] */        wTextColor, 0, 0, 0,
  18.         /* [4] */        wHiliteColor, 0, 0, 0,
  19.         /* [5] */        wTitleBarColor, 65535, 65535, 65535
  20.     }
  21. };
  22.  
  23. resource 'DLOG' (240, "Demo group boxes", purgeable) {
  24.     {46, 15, 340, 493},    movableDBoxProc,    visible,    nogoAway,    
  25.     0x0,    240,    
  26.     "Group Box Variations"
  27. #if SystemSevenOrLater
  28.     , centerMainScreen
  29. #endif
  30. };
  31.  
  32. resource 'DITL' (240, "Demo group boxes", purgeable) {
  33.     {
  34.         /* [1] */    {261, 406, 281, 465},        Button        { enabled,    "OK"        },
  35.         /* [2] */    {261, 334, 281, 393},        Button         { enabled,    "Disable"    },
  36.         
  37.         /* [1] */    {10,  10, 85, 150},            Control        {    enabled,    240    },
  38.         /* [1] */    {10,  170, 26, 310},        Control        {    enabled,    241    },
  39.         /* [1] */    {10,  330, 26, 470},        Control        {    enabled,    242    },
  40.         /* [1] */    {100,  10, 116, 150},        Control        {    enabled,    243    },
  41.         /* [1] */    {100,  170, 116, 310},        Control        {    enabled,    244    },
  42.         /* [1] */    {100,  330, 116, 470},        Control        {    enabled,    245    },
  43.         /* [1] */    {190,  10, 206, 150},        Control        {    enabled,    246    },
  44.         /* [1] */    {190,  170, 206, 310},        Control        {    enabled,    247    },
  45.         
  46.         /* [1] */    {30,  20, 46, 140},            CheckBox    {    enabled,    "CheckBox"    },
  47.         /* [1] */    {30,  180, 46, 300},        CheckBox    {    enabled,    "CheckBox"    },
  48.         /* [1] */    {30,  340, 46, 460},        CheckBox    {    enabled,    "CheckBox"    },
  49.         /* [1] */    {120,  20, 136, 140},        CheckBox    {    enabled,    "CheckBox"    },
  50.         /* [1] */    {120,  180, 136, 300},        CheckBox    {    enabled,    "CheckBox"    },
  51.         /* [1] */    {120,  340, 136, 460},        CheckBox    {    enabled,    "CheckBox"    },
  52.         /* [1] */    {210,  20, 226, 140},        CheckBox    {    enabled,    "CheckBox"    },
  53.         /* [1] */    {210,  180, 226, 300},        CheckBox    {    enabled,    "CheckBox"    },
  54.         
  55.     }
  56. };
  57.  
  58. resource 'CNTL' (240, purgeable) {
  59.     {10,  10, 26, 150},    0,
  60.     visible,    75,        0,    
  61.     16*groupBox+8,
  62.     0,
  63.     "Normal"
  64. };
  65.  
  66. resource 'CNTL' (241, purgeable) {
  67.     {10,  170, 26, 310},    0,
  68.     visible,    75,        0,    
  69.     16*groupBox+1,
  70.     0,
  71.     "Normal+1"
  72. };
  73.  
  74. resource 'CNTL' (242, purgeable) {
  75.     {10,  330, 26, 470},    0,
  76.     visible,    75,        0,    
  77.     16*groupBox+2,
  78.     0,
  79.     "Normal+2"
  80. };
  81.  
  82. resource 'CNTL' (243, purgeable) {
  83.     {100,  10, 116, 150},    0,
  84.     visible,    75,        0,    
  85.     16*groupBox+3,
  86.     0,
  87.     "Normal+1+2"
  88. };
  89.  
  90. resource 'CNTL' (244, purgeable) {
  91.     {100,  170, 116, 310},    0,
  92.     visible,    75,        0,    
  93.     16*groupBox+4,
  94.     0,
  95.     "Normal+4"
  96. };
  97.  
  98. resource 'CNTL' (245, purgeable) {
  99.     {100,  330, 116, 470},    0,
  100.     visible,    75,        0,    
  101.     16*groupBox+1+4,
  102.     0,
  103.     "Normal+1+4"
  104. };
  105.  
  106. resource 'CNTL' (246, purgeable) {
  107.     {190,  10, 206, 150},    0,
  108.     visible,    75,        0,    
  109.     16*groupBox+2+4,
  110.     0,
  111.     "Normal+2+4"
  112. };
  113.  
  114. resource 'CNTL' (247, purgeable) {
  115.     {190,  170, 206, 310},    0,
  116.     visible,    75,        0,    
  117.     16*groupBox+1+2+4,
  118.     0,
  119.     "Normal+1+2+4"
  120. };
  121.